﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using nwrole.lib;

namespace nwrole.OrchestratorConsole {
    class Program {
        static void Main(string[] args) {
            Console.WriteLine("Starting Orchestrator");

            string sbIssuerName = ConfigurationManager.AppSettings["OrchestratorSBIssuerName"];
            string sbIssuerSecret = ConfigurationManager.AppSettings["OrchestratorSBIssuerSecret"];

            Orchestrator orchestrator = new Orchestrator();
            orchestrator.Start(sbIssuerName, sbIssuerSecret);

            Console.WriteLine("Orchestrator started");
            Console.WriteLine("Press any key to exit");
            Console.ReadKey();

            orchestrator.Stop();
        }
    }
}
